
#include "latch.h"
#include "Delay.h"

void huxideng(void)
{
	unsigned char time = 0;
	unsigned char i = 0;
	for(i = 0;i<20;i++)
	{
		for(time = 0;time<5;time++)
		{
		Latch(LED,0xfe);
		Delay(i);
		Latch(LED,0xff);
		Delay(20-i);
		}
	}
	for(i = 0;i<20;i++)
	{
		for(time = 0;time<5;time++)
		{
		Latch(LED,0xfe);
		Delay(20-i);
		Latch(LED,0xff);
		Delay(i);
		}
	}
}

void main(void)
{
	Latch(RELAY,0x00);
	Latch(LED,0xff);
	Latch(NIXIE_D,0xff);
	while(1)
	{
//		Latch(LED,0xfe);
//		Delay(1);
//		Latch(LED,0xff);
//		Delay(1);
		huxideng();
		
	}
}